<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>数据列表 - bootstrap中文后台管理系统模板</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <meta name="keywords" content="后台模板,后台管理系统,HTML模板">
    <meta name="description" content="基于Bootstrap的后台管理系统模板">
    <meta name="author" content="www.bootstrapmb.com">
    <link href="${pageContext.request.contextPath}/static/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/admin/css/fonts.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/admin/css/style.css" rel="stylesheet">
</head>

<body>
<!--页面主要内容-->
<main class="ftdms-layout-content">

    <div class="container-fluid" style="margin-bottom:90px;">

        <div class="row" style="margin-top:15px;">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-toolbar clearfix">
                        <form class="pull-right search-bar" method="get" action="#!" role="form">
                            <div class="input-group">
                                <div class="input-group-btn">
                                    <input type="hidden" name="search_field" id="search-field" value="title">
                                    <button class="btn btn-default dropdown-toggle" id="search-btn"
                                            data-toggle="dropdown" type="button" aria-haspopup="true"
                                            aria-expanded="false">
                                        标题 <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu">
                                        <li><a tabindex="-1" href="javascript:void(0)" data-field="title">标题</a></li>
                                        <li><a tabindex="-1" href="javascript:void(0)" data-field="cat_name">栏目</a>
                                        </li>
                                    </ul>
                                </div>
                                <input type="text" class="form-control" value="" name="keyword"
                                       placeholder="请输入名称">
                            </div>
                        </form>
                        <div class="toolbar-btn-action">
                            <a class="btn btn-primary m-r-5 submenuitem" href="clothinglist.action" data-id="link552"
                               data-index="552"> 返回</a>

                        </div>
                    </div>
                    <div class="card-body">

                        <div class="table-responsive">
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th width="5">
                                        <label class="ftdms-checkbox checkbox-primary">
                                            <input type="checkbox" id="check-all"><span></span>
                                        </label>
                                    </th>
                                    <th>物品编号</th>
                                    <th>图像</th>
                                    <th>用户名称</th>
                                    <th>用户电话</th>
                                    <th>状态名称</th>

                                </tr>
                                </thead>
                                <tbody>
                                <c:forEach items="${clothinglist}" var="clothing">
                                    <tr>
                                        <td>
                                            <label class="ftdms-checkbox checkbox-primary">
                                                <input type="checkbox" name="ids[]" value="1"><span></span>
                                            </label>
                                        </td>
                                        <td>${clothing.clothingId}</td>
                                        <td>${clothing.colthingImg}</td>
                                        <td>${clothing.uName}</td>
                                        <td>${clothing.uTel}</td>
                                        <td>${clothing.clothingStateName}</td>

                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                        </div>
                        <ul class="pagination">
                            <li><a href="${pageContext.request.contextPath}${page.servletUrl}">首页</a></li>
                            <li><a href="${pageContext.request.contextPath}${page.servletUrl}?pageNum=${page.pageInfo.pageNum-1}">上一页</a></li>
                            <c:forEach begin="${page.pageInfo.navigateFirstPage}" end="${page.pageInfo.navigateLastPage}" var="a">
                                <li><a href="${pageContext.request.contextPath}${page.servletUrl}?pageNum=${a}">${a}</a></li>
                            </c:forEach>
                            <li><a href="${pageContext.request.contextPath}${page.servletUrl}?pageNum=${page.pageInfo.pageNum==page.pageInfo.pages?page.pageInfo.pageNum:page.pageInfo.pageNum+1}">下一页</a></li>
                            <li><a href="${pageContext.request.contextPath}${page.servletUrl}?pageNum=${page.pageInfo.pages}">尾页</a></li>
                        </ul>

                    </div>
                </div>
            </div>

        </div>

    </div>

</main>
<!--End 页面主要内容-->

<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/bootstrap.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/main.min.js"></script>
<script type="text/javascript">
    $(function () {
        $('.search-bar .dropdown-menu a').click(function () {
            var field = $(this).data('field') || '';
            $('#search-field').val(field);
            $('#search-btn').html($(this).text() + ' <span class="caret"></span>');
        });
    });
</script>
</body>
</html>
